package com.cskaoyan.market.service.wx;

import com.cskaoyan.market.db.domain.MarketGoodsAttribute;
import com.cskaoyan.market.db.domain.MarketGoodsAttributeExample;
import com.cskaoyan.market.db.mapper.MarketGoodsAttributeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WxGoodsAttributeServiceImpl implements WxGoodsAttributeService{
    @Autowired
    MarketGoodsAttributeMapper attributeMapper;

    @Override
    public List<MarketGoodsAttribute> queryAttributes(Integer id) {
        MarketGoodsAttributeExample marketGoodsAttributeExample = new MarketGoodsAttributeExample();
        MarketGoodsAttributeExample.Criteria criteria = marketGoodsAttributeExample.createCriteria();
        criteria.andGoodsIdEqualTo(id);
        return attributeMapper.selectByExample(marketGoodsAttributeExample);
    }
}

